package com.lz.core;

import io.vertx.core.Vertx;

/**
 * Client..
 *
 * @author Lizhong
 * @date 2019/9/4
 */
public class Client {
    public static void main(String[] args) {
        Vertx vertx = Vertx.vertx();
        vertx.setPeriodic(100, (l) -> {
            vertx.createHttpClient().getNow(1024, "localhost", "/", resp -> {
                resp.bodyHandler(body -> {
                    System.out.println(body.toString("ISO-8859-1"));
                });
            });
        });
    }
}
